

#include "Globals.h"
#include "BaseDrawable.h"


class Renderer
{
private:
	Renderer();

	ID3DXSprite*			Sprite;			// Sprite Object	
	bool					isWindowed;



	ID3DXFont* BasicFont;
	//DirectX 9 Setup
	IDirect3D9*				R_Object;
	IDirect3DDevice9*		Device;		
	D3DPRESENT_PARAMETERS	D3Dpp;

	
	

	//LPDIRECT3DTEXTURE9		TempTexture;		
	//D3DXIMAGE_INFO			TempInfo;		
	


public:



	inline static Renderer* Instance()      //Renderer to the power of singleton
	{
		static Renderer renderer;
		return &renderer;
	}

	void Init(HWND,HINSTANCE);	//Initialize everything
	void Update(ObjectList);				
	void RenderOneFrame(ObjectList);

	ID3DXFont*		GetFont();
	LPDIRECT3DTEXTURE9	GetTexture(int); 
	D3DXIMAGE_INFO		GetImageInfo(int);
};

